X-Git-Url: https://git.r.bdr.sh/rbdr/super-polarity/blobdiff_plain/95d7601b7742ed560a9d8e00269217f62fc7ce32..f8aec187ea7dc410a32996406109f290f3199ffa:/Super%20Polarity/Ship.cs?ds=sidebyside diff --git a/Super Polarity/Ship.cs b/Super Polarity/Ship.cs new file mode 100644 index 0000000..5105882 --- /dev/null +++ b/Super Polarity/Ship.cs @@ -0,0 +1,38 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; + +namespace SuperPolarity +{ + class Ship : Actor + { + public enum Polarity : byte { Negative, Positive, Neutral }; + + protected uint HP; + protected Polarity CurrentPolarity; + + public void SwitchPolarity() + { + if (CurrentPolarity == Polarity.Positive) + { + CurrentPolarity = Polarity.Negative; + } + else + { + CurrentPolarity = Polarity.Positive; + } + } + + public void SetPolarity(Polarity newPolarity) + { + CurrentPolarity = newPolarity; + } + + public virtual void Shoot() + { + } + } +}